import { articleSave, articleEdit } from '@/api/article'
import { ElMessage } from 'element-plus'
import i18n from '@/i18n'
const t = i18n.global.t
export const articleCreate = async (data) => {
  const resp = await articleSave(data)
  ElMessage.success(t('message.article.createSuccess'))
  return resp
}
export const articleEditor = async (data) => {
  const resp = await articleEdit(data)
  ElMessage.success(t('message.article.editorSuccess'))
  return resp
}
